home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / www / build next >
Encoding:
Text File  |  1994-10-25  |  1.4 KB  |  43 lines

  1. #! /bin/csh
  2. #            Build all WWW Code for this platform
  3. #
  4. #    Figure out what sort of unix this is
  5. #    (NeXT machines don't have uname!)
  6.  
  7. set UNAME=NeXT
  8. if (-e /usr/bin/uname) set UNAME=`/usr/bin/uname`
  9. if (-e /bin/uname) set UNAME=`/bin/uname`
  10. if (-e /usr/apollo/bin) set UNAME=`ver sys5.3 /bin/uname`
  11. if ( $UNAME == "" ) then
  12.     if (-r /NextApps ) set UNAME=next
  13. endif
  14. #
  15. setenv UNAME $UNAME
  16. # For apollo, must use bsd mode. Also, WWW_MACH not inherited through make!
  17. if ($UNAME == "DomainOS")    setenv WWW_MACH    apollo_m68k
  18. if ($UNAME == next)    setenv WWW_MACH     next
  19. if ($UNAME == "HP-UX")    setenv WWW_MACH     snake
  20. if ($UNAME == "IRIX")    setenv WWW_MACH     sgi
  21. if ($UNAME == "SunOS")    setenv WWW_MACH        sun4
  22. if ($UNAME == "ULTRIX")    setenv WWW_MACH        decstation
  23. if ($UNAME == "AIX")    setenv WWW_MACH        rs6000
  24. if ($UNAME == "OSF1")   setenv WWW_MACH        osf1
  25.  
  26. if ($WWW_MACH == "") then
  27.     echo "Please edit BUILD file to include your machine OS"
  28.     echo "and mail differences back to www-bug@info.cern.ch
  29.     exit -99
  30. endif
  31. echo "________________________________________________________________"
  32. echo "WWW build for machine type:                            " $WWW_MACH
  33.  
  34. #    Now go do build
  35.  
  36. #    We don't want SHELL set to something funny to screw up make
  37.  
  38. (cd All/Implementation; unsetenv SHELL; make)
  39. set stat = $status
  40. echo
  41. echo "WWW build for " $WWW_MACH  " done. status = " $stat
  42. exit $stat
  43.